package com.ht.power3d.vmap;

import java.io.Serializable;

/**
 * @author SU Xinyi
 * @since 2009-5-15
 */
public class DataPoint implements Serializable{
    private int id;
    private String name;
    private String voltageLevel;
    public float x;
    public float y;
    public float value;

    private static int idNow = 0;
    
    public DataPoint(float x, float y){
        this.id = idNow;
        idNow++;
        this.x = x;
        this.y = y;
    }

    public DataPoint( float x, float y, float value){
        this.id = idNow;
        idNow++;
        this.x = x;
        this.y = y;
        this.value = value;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public float getX() {
        return this.x;
    }

    public float getY() {
        return this.y;
    }

    public float getValue() {
        return value;
    }

    public void setValue(float value) {
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getVoltageLevel() {
        return voltageLevel;
    }

    public void setVoltageLevel(String voltageLevel) {
        this.voltageLevel = voltageLevel;
    }
}
